package com.xindong.paking.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangshengce
 * @since 2023-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_message")
public class TbMessage implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 信息ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送管理员ID
     */
    @TableField("adminId")
    private String adminId;

    /**
     * 接受用户ID
     */
    @TableField("recipientId")
    private String recipientId;

    /**
     * 信息内容
     */
    @TableField("content")
    private String content;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 标题
     */
    @TableField("title")
    private Integer title;

    /**
     * 信息发送时间
     */
    @TableField("sendTime")
    private LocalDateTime sendTime;


}
